package com.example.springscuritydemo.controller;

import com.example.springscuritydemo.Entity.TOrder;
import com.example.springscuritydemo.service.TOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author 张晓焕
 * @Date 2022/8/24 1:14
 * @Version 1.0
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    TOrderService tOrderService;
    @GetMapping("/test1")
    Object test() {
         TOrder tOrder = new TOrder();
         tOrder.setTname("");
        tOrder.setTid(9L);
        tOrderService.updateById(tOrder);
        return "tese success";
    }
}
